/*=============================================================================

  FRAME GRABBER CONTROL CONFIGURATION

  FILE: HFg_CFG.c
  
  DESCRIPTION

    Frame grabber control configuration
    
  EXTERNALIZED FUNCTIONS


   Copyright (c) DaeSung Engineering Inc. All rights reserved.

=============================================================================*/
/*=============================================================================

  EDIT HISTORY

  ---------  -------  -------------------------------------------------------
    when       who       what, where, why
  ---------  -------  -------------------------------------------------------
   07/15/04   nso4th    Initial version

=============================================================================*/

/*=============================================================================
  HEADER INCLUSION
=============================================================================*/
#include <Cust_AppDef.h>
#include "HFG_CFG.h"
#include <stdio.h>
#include <string.h>

/*=============================================================================
  CONSTATN DEFINITION
=============================================================================*/
#define HFGCFG_DEV_NUM			(1)

/*-------------------------------------------------------------------
  DEVICE CONFIGURATION
-------------------------------------------------------------------*/
//---- DEVICE 0
static fgdev_setup_s		gFgDev_0 = {
#ifdef TG_HW_FGDEV_SIMUL
		FGDEV_EMULATOR,  // devName
#else
		FGDEV_MATROX_SOLIOS, // devName
#endif
		"", // dev_str
		0, // subID
#ifdef TG_HW_FGDEV_SIMUL
		{"C:\\LaserOptical\\emul\\"},
#else
#if 1
		{"C:\\LaserOptical\\system\\MIL8_SOL_XCL-U100_Async_SWTRIG.dcf"}
#else
		{"C:\\LaserOptical\\system\\MIL8_SOL_XCL-U100_Cont.dcf"}
#endif
#endif
};

/*=============================================================================
  EXTERNALIZED FUNCION DEFINITION
=============================================================================*/
fgdev_cfg_s *fgdev_default_alloc(void)
{
	fgdev_cfg_s		*cfg;

	cfg = fgdev_cfg_alloc();

	cfg->dev_num = HFGCFG_DEV_NUM;
	cfg->set = (fgdev_setup_s*)memCalloc(sizeof(*(cfg->set))*(cfg->dev_num));

	memCopy(cfg->set, &gFgDev_0, sizeof(gFgDev_0));

	return	cfg;
}

void fgdev_default_free(fgdev_cfg_s *cfg)
{
	if(cfg == NULL)
		return;

	if(cfg->set)
	{
		memFree(cfg->set);
		cfg->set = NULL;
	}
	fgdev_cfg_free(cfg);
}

/*--- END OF HFg_cfg.c ---*/
